<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title >
    <link rel="shortcut icon" href="#" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery.min.js"></script>
    <script>
        let RequestData = {
            'LogisticCode': '773026589419357',
        }
        $.ajax({
            url: "https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx", //这里是静态页的地址
            /*https://www.kuaidi100.com/all/ems.shtml?mscomnu=9867730889702*/
            type: "POST", //静态页用get方法，否则服务器会抛出405错误
            dataType:"2",
            data:{EBusinessID:"1749381",ApiKey:"086c8ccf-be1e-488e-b401-e8abc3c87bbd",RequestType:"8002",DataSign:"Buffer.from(md5Hex(JSON.stringify(RequestData)+ApiKey)).toString('base64')",LogisticCode:"773026589419357"},
            success:function(result){
                alert(result);
            },
            error:function (result) {
                alert(result);
                console.log(result);
            }
        })
    </script>
</head>
<body>
<%--<%
    String com = "ems";
    String[] nulist = {"9867730889702"};
    for (int i=0; i<nulist.length; i++) {
        out.println(" <a href=\"https://www.kuaidi100.com/chaxun?com="+com+"&nu="+nulist[i]+"\" >"+nulist[i]+" </a> <br/ >");
    }
%>--%>

<div id="restult">

</div>



</body>
</html>